package com.carSys.Controller;


import com.carSys.DTO.NegativeFeedBackDTO;
import com.carSys.Service.NegativeFeedbackDTOService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/carsys/negativeFeedback")
public class NegativeFeedbackController {

    @Autowired
    private NegativeFeedbackDTOService negativeFeedbackDTOService;

    @GetMapping("/getAllNegativeFeedbacks")
    public List<NegativeFeedBackDTO> getAllNegativeFeedbacks() {
        return negativeFeedbackDTOService.getAllNegativeFeedbacks();
    }
}
